const app = getApp()
const api = require("../../request/api")
Page({

  /**
   * 页面的初始数据
   */
  data: {
    statusBarHeight: 0,
    packageList: []
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.initData()
  },

  async initData() {
    let result = await api.getAllPackage()
    console.log(result)
    this.setData({
      packageList: result.data
    })
  }

})